#include "Observer.h"

Observer::Observer(){}

void Observer::RegisterToSubject(Subject *subject, EVENT e){
	subject->Attach(this,e);
	this->sbj = subject;
}

void Observer::UnregisterFromSubject(EVENT e){
	this->sbj->Detach(this,e);
	this->sbj = 0;
}

Observer::~Observer(){
	this->sbj->Detach(this);
}

void Observer::Update(Subject* ChngSubject, EVENT e){}
